﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;

public partial class Service_ShowService : System.Web.UI.Page
{
    ReadParamtes bllParam = new ReadParamtes();
    protected void Page_Load(object sender, EventArgs e)
    {
        int rid = Convert.ToInt32(Request.QueryString["renid"].ToString());
        if (rid == 0)
        {
            Response.Redirect("../Default.aspx");
        }
        else
        {
            DataTable dtGetLawInfo = bllParam.GetLawInfo(rid);
            this.rentitle.Text = dtGetLawInfo.Rows[0]["rentitle"].ToString();
            this.renpic.ImageUrl = dtGetLawInfo.Rows[0]["renpic"].ToString();
            this.rentext.Text = dtGetLawInfo.Rows[0]["rentext"].ToString();
            this.rentitle2.Text = dtGetLawInfo.Rows[0]["rentitle"].ToString();
        }
    }
}
